#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 获取当前脚本文件所在目录的父目录，并构建相对路径
import os
import sys
current_dir = os.path.dirname(os.path.abspath(__file__))
project_path = os.path.join(current_dir, '..')
sys.path.append(project_path)
sys.path.append(current_dir)
from enum import Enum

class Class1():
    def __init__(self, arg1=None):
        self.arg1 = arg1

    @staticmethod
    def static_fun(a): #no self needed in arg list.
        print(a)

    class GpRedisItemType(Enum):
        redisObjType = 1
        redisValueType = 2
    
    def fun1(self, GpRedisItemType type): #normal instance related function.
        if type == GpRedisItemType.redisObjType:
            print("It's objType. so?")
    


if __name__ == "__main__":
    obj1 = Class1()
    print(obj1.arg1)
    Class1.static_fun("hi")
    pass  #remember this is escape code.